<?php
/**
 * TomatoCMS
 * 
 * LICENSE
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2 
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-2.0.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@tomatocms.com so we can send you a copy immediately.
 * 
 * @copyright	Copyright (c) 2009-2010 TIG Corporation (http://www.tig.vn)
 * @license		http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
 * @version 	$Id: Partner.php 4519 2010-08-12 09:36:17Z huuphuoc $
 * @since		2.0.5
 */

interface Bizprofile_Models_Interface_Partner
{
	/**
	 * add partner
	 * @param object $partner
	 * @return 
	 */
	public function add($partner);
	
	/**
	 * add 2 chieu
	 * @param object $partner
	 * @return 
	 */
	public function add2($partner);
	
	public function getPartner($enterp_id, $rela_id);
	
	public function checkPartner($enterp_id, $rela_id);
	
	public function acceptPartner($enterp_id, $rela_id);
	
	public function removePartner($enterp_id, $rela_id);
	
	public function listPartner($enterp_id);
	
	public function getListByEnteprise($enterp_id, $offset, $count);
	
	public function getCountListByEnteprise($enterp_id);
	
	public function getNotify($enterprise_id);
	
	public function getNotifyPartner($enterprise_id);
	
	public function updateNotify($enterprise_id);
	
	public function getCountNotify($enterprise_id);
	
	public function count($exp);
	
	public function find($offset = null, $count = null, $exp = null);
}
